<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    var str = ''  // 变量
    var arr = ['信息', ' 济南', ['qwer']]

    function fn() {  //函数
    }

    var obj = {
      info: '信息',  // 属性
      address: '济南',
      age: 18,
      arr: [2,3,4],
      sayHi: function() {  // 方法
        console.log(123)
      }
    }

    console.log(obj)

    console.log( obj.info )
    console.log( obj.address )
    console.log( obj['age'] )

    obj.sayHi()
  </script>
</body>
</html>